<!DOCTYPE html>
<html lang="en">
<head>
    <link rel="stylesheet" type="text/css" href="/easyui.css">
    <link rel="stylesheet" type="text/css" href="/icon.css">
    <link rel="stylesheet" type="text/css" href="/demo.css">
    <script src="/jquery.min.js"></script>
    <script src="/jquery.easyui.min.js"></script>
    <meta charset="UTF-8">
    <title>老师查看学生</title>
</head>
<body>
<table id="dg"></table>
<script type="text/javascript">
    function GetQueryString(name)
    {
        var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if(r!=null)return  unescape(r[2]); return null;
    }
    var tid = 1;
    tid = GetQueryString("tid");
    $("#dg").datagrid({
        url:"/TeacherShowStudentController/showStudent",
        queryParams:{tid:tid},
        rownumber:'true',
        fitColumns:'true',
        columns:[[
            {field:'sid',title:'学号',with:100},
            {field:'sname',title:'姓名',width:100},
            {field:'ssex',title:'性别',width:50},
            {field:'bid',title:'班级编号',width:100}
        ]],
    });
</script>



</body>
</html>